'use strict'

let {Sequelize,DataTypes}=require('sequelize');


let sequelize = new Sequelize('hyh','postgres','qq_112358',{
    host:'172.16.10.214',
    dialect:'postgres'
})


let defineModel = function(name,edit){
    let User = sequelize.define(name,edit);
    return User;
}


let obj = {
    sequelize,
    defineModel,
    DataTypes
};

module.exports = obj;
